package cho114366.basic;

public class J02_Arithmathic {

	public static void main(String[] args) {
		
		double x;
		double y;
		int m;
		int n;
		
		x = 2.5;
		y = 1.5;
		m = 18;
		n = 4;
		//과연 결과는 무엇일까?
		System.out.println((1/3)*3);
		// 자료형 변환(명시적.강제)
		System.out.println(((float)1/3)*3);
		//실수리터럴
		System.out.println((1./3)*3);
		System.out.println((1f/3)*3);
		System.out.println(x+n*y-(x+n)*y);
		System.out.println(m/n+m%n);
		System.out.println(5*x-n/5);
		System.out.println(1-(1-(1-(1-(1-n)))));
		
		

	}

}

